package com.efivestar.idm.api.common;


import lombok.*;

@Builder
@Data
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class ResultDto<T> {

    @Builder.Default
    private String success = "true";
    private T data;
    private ExceptionObj exceptionObj;

    public static class ExceptionObj {
        private String code;
        private String message;

        public ExceptionObj() {
        }

        public ExceptionObj(String code, String message) {
            this.code = code;
            this.message = message;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }
}
